<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:o="http://openfaces.org/"
      xmlns:ui="http://java.sun.com/jsf/facelets">

    <head>
    </head>
    <body>
        <ui:composition template="/templates/default.xhtml">
		
            <ui:define name="display">
                        
            	<h:outputText value="#{navController.breadcrumbTrail}" />
            	     
                <h1>#{msg.mnGettingStarted}</h1>
                <h:messages id="info" globalOnly="true" />
                
                <h:form>
                
                	<h:panelGrid columns="1">
	                	<legend>Documentation</legend>
						<h:outputLink value="/openhds/getting-started/database-configuration.pdf">
			   		    	<h:outputText value="#{msg.gettingStartedConfigureDatabase}" />
			   		    </h:outputLink>
						<h:outputLink value="/openhds/getting-started/location-level-configuration.pdf">
			   		    	<h:outputText value="#{msg.gettingStartedConfigureLocationLevels}" />
			   		    </h:outputLink>
						<h:outputLink value="/openhds/getting-started/codes-parameters-configuration.pdf">
			   		    	<h:outputText value="#{msg.gettingStartedConfigureCodesAndParams}" />
			   		    </h:outputLink>
						<h:outputLink value="/openhds/getting-started/internationalization-configuration.pdf">
			   		    	<h:outputText value="#{msg.gettingStartedConfigureInternationalization}" />
			   		    </h:outputLink>
						<h:outputLink value="/openhds/getting-started/location-hierarchy-configuration.pdf">
			   		    	<h:outputText value="#{msg.gettingStartedConfigurateLocationHierarchy}" />
			   		    </h:outputLink>
			   		    <h:outputLink value="/openhds/getting-started/security-configuration.pdf">
			   		    	<h:outputText value="#{msg.gettingStartedConfigureSecurity}" />
			   		    </h:outputLink>
                	</h:panelGrid>
                	<br />
                	   
                	<h:panelGrid columns="1">
                		<legend>#{msg.gettingStartedSteps}</legend>           
						<h:outputLink value="/openhds/database-config">
			   		    	<h:outputText styleClass="welcome-link" value="#{msg.mnDatabase}" />
			   		    </h:outputLink>
	                	<h:outputLink value="/openhds/location-levels">
			   		    	<h:outputText styleClass="welcome-link" value="#{msg.mnLocationLevelsConfig}" />
			   		    </h:outputLink>
	                	<h:outputLink value="/openhds/codes-config">
			   		    	<h:outputText styleClass="welcome-link" value="#{msg.mnCodesConfig}" />
			   		    </h:outputLink>
	                	<h:commandLink styleClass="welcome-link" value="#{msg.mnLocationHierarchy}" action="#{locationHierarchyCrud.createSetup}">
	                		<f:setPropertyActionListener target="#{navController.showUtilities}" value="true" /> 
	                	</h:commandLink>
	                	<h:commandLink styleClass="welcome-link" value="#{msg.mnFieldWorkers}" action="#{fieldWorkerCrud.createSetup}">
	                		<f:setPropertyActionListener target="#{navController.showUtilities}" value="true" /> 
	                	</h:commandLink>
	                	<h:commandLink styleClass="welcome-link" action="baseline_flow" value="#{msg.mnBaseline}" >
	                        <f:setPropertyActionListener target="#{navController.showBaseline}" value="true" /> 
	                    </h:commandLink> 
	                   	<h:commandLink styleClass="welcome-link" action="update_flow" value="#{msg.mnUpdate}" >
	                        <f:setPropertyActionListener target="#{navController.showUpdate}" value="true" /> 
	                   	</h:commandLink> 
                	</h:panelGrid>
                	<br />
	                
	                <fieldset style="width:35%">
                		<legend>#{msg.gettingStartedTestData}</legend>
                		<b>#{msg.gettingStartedSampleTestData}</b><br />
						#{msg.gettingStartedSampleTestDataRequirements}<br /><br />
						
						#{msg.gettingStartedEntityIds}:<br />
						<table style="text-align:center">
							<tr>
								<td><b>#{msg.navBarIndividual}</b></td>
								<td><b>#{msg.navBarLocation}</b></td>
								<td><b>#{msg.navBarSocialGroup}</b></td>
								<td><b>#{navBarVisit}</b></td>
							</tr>
							<tr>
								<td>BRHA1U</td>
								<td>MBI01</td>
								<td>SG01</td>
								<td>VMBI01</td>
							</tr>
							<tr>
								<td>CHHA12</td>
								<td>MBI02</td>
								<td>SG02</td>
								<td></td>
							</tr>
							<tr>
								<td>SAR01E</td>
								<td>MBI03</td>
								<td>SG03</td>
								<td></td>
							</tr>
							<tr>
								<td>JEMA1H</td>
								<td>MBI04</td>
								<td>SG04</td>
								<td></td>
							</tr>
							<tr>
								<td>TOMA1M</td>
								<td></td>
								<td></td>
								<td></td>
							</tr>
							<tr>
								<td>HEMA1L</td>
								<td></td>
								<td></td>
								<td></td>
							</tr>
							<tr>
								<td>ABHA1C</td>
								<td></td>
								<td></td>
								<td></td>
							</tr>
							<tr>
								<td>PEBA1R</td>
								<td></td>
								<td></td>
								<td></td>
							</tr>
						</table>
			   		    <br />
			   		    <h:commandButton styleClass="config" action="#{databaseConfig.executeTestScript}" value="#{msg.gettingStartedLoadTestData}" disabled="#{databaseConfig.testDataEnabled}" />
                	</fieldset>
	              
	            </h:form>
            </ui:define>
        </ui:composition>
    </body>
</html>